Part Number Hot Search : 
25L20 NTXV1N 5835NL FRS244H AN157 ST10F AN157 BAS31
Product Description
Full Text Search
 

To Download DS1685 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  DS1685/ds1687 3 volt/5 volt real time clock DS1685/ds1687 ds1687 24pin encapsulated package v cc sqw v baux rclr nc irq ks rd nc wr ale cs pwr nc nc ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 gnd 1 2 3 4 5 6 7 8 9 10 11 12 24 23 22 21 20 19 18 17 16 15 14 13 DS1685 24pin dip v cc sqw v baux rclr v bat irq ks rd gnd wr ale cs pwr x1 x2 ad0 ad1 ad2 ad3 ad4 ad5 ad6 ad7 gnd 1 2 3 4 5 6 7 8 9 10 11 12 24 23 22 21 20 19 18 17 16 15 14 13 DS1685s 24pin soic 4321 rclr v bat irq ks rd gnd wr 28 27 26 25 24 23 22 21 20 19 x1 nc vcc sqw vbaux x2 ad6 ad7 gnd cs ale nc 12 13 14 15 16 17 18 ad0 ad1 ad2 ad3 ad4 ad5 nc 5 6 7 8 9 10 11 nc DS1685q 28pin plcc pwr DS1685e 24pin tssop 030598 1/32 features incorporates industry standard ds1287 pc clock plus enhanced features: ? y2k compliant ? +3 or +5 volt operation ? 64bit silicon serial number ? power control circuitry supports system power on from date/time alarm or key closure ? 32 khz output for power management ? crystal select bit allows rtc to operate with 6 pf or 12.5 pf crystal ? smi recovery stack ? 242 bytes user nvram ? auxiliary battery input ? ram clear input ? century register ? date alarm register ? compatible with existing bios for original ds1287 functions ? available as chip (DS1685) or standalone module with embedded battery and crystal (ds1687) ? timekeeping algorithm includes leap year compensa- tion valid up to 2100 ordering information part # description DS1685x rtc chip; 24pin dip DS1685ex rtc chip; 24pin tssop DS1685sx rtc chip; 24pin soic DS1685qx rtc chip; 28pin plcc ds1687x rtc module; 24pin dip 3 +3 volt device +5 volt device 5 pin assignment
DS1685/ds1687 030598 2/32 pin description x1 crystal input x2 crystal output rclr ram clear input ad0ad7 mux'ed address/data bus pwr poweron interrupt output (open drain) ks kickstart input cs rtc chip select input ale rtc address strobe wr rtc write data strobe rd rtc read data strobe irq interrupt request output (open drain) sqw square wave output v cc +3 or +5 volt main supply gnd ground v bat battery + supply v baux auxiliary battery supply nc no connection description the DS1685/ds1687 is a real time clock (rtc) designed as a successor to the industry standard ds1285, ds1385, ds1485, and ds1585 pc real time clocks. this device provides the industry standard ds1285 clock function with either +3.0 or +5.0 volt operation . the DS1685 also incorporates a number of enhanced features including a silicon serial number, power on/off control circuitry, 242 bytes of user nv sram and 32.768 khz output for sustaining power management activities. the DS1685/ds1687 power control circuitry allows the system to be powered on via an external stimulus, such as a keyboard or by a time and date (wake up) alarm. the pwr output pin can be triggered by one or either of these events, and can be used to turn on an external power supply. the pwr pin is under software control, so that when a task is complete, the system power can then be shut down. the DS1685 is a clock/calendar chip with the features described above. an external crystal and battery are the only components required to maintain timeofday and memory status in the absence of power. the ds1687 incorporates the DS1685 chip, a 32.768 khz crystal, and a lithium battery in a complete, selfcon- tained timekeeping module. the entire unit is fully tested at dallas semiconductor such that a minimum of 10 years of timekeeping and data retention in the absence of v cc is guaranteed. operation the block diagram in figure 1 shows the pin connec- tions with the major internal functions of the DS1685/ds1687. the following paragraphs describe the function of each pin. signal descriptions gnd, v cc dc power is provided to the device on these pins. v cc is the +3 volt or +5 volt input. sqw (square wave output) the sqw pin will pro- vide a 32 khz square wave output, t rec , after a pow- erup condition has been detected. this condition sets the following bits, enabling the 32 khz output; dv1=1, and e32k=1. a square wave will be output on this pin if either sqwe=1 or e32k=1. if e32k=1, then 32 khz will be output regardless of the other control bits. if e32k=0, then the output frequency is dependent on the control bits in register a. the sqw pin can output a signal from one of 13 taps provided by the 15 internal divider stages of the real time clock. the frequency of the sqw pin can be changed by programming register a as shown in table 2. the sqw signal can be turned on and off using the sqwe bit in register b or the e32k bit in extended register 4bh. a 32 khz sqw signal is output when the enable 32 khz (e32k) bit in extended register 4bh is a logic one, and v cc is above v pf . a 32 khz square wave is also available when v cc is less than v pf if e32k=1, abe=1, and voltage is applied to the v baux pin. ad0ad7 (multiplexed bidirectional address/data bus) multiplexed buses save pins because address information and data information time share the same signal paths. the addresses are present during the first portion of the bus cycle and the same pins and signal paths are used for data in the second portion of the cycle. address/data multiplexing does not slow the access time of the DS1685 since the bus change from address to data occurs during the internal ram access time. addresses must be valid prior to the latter portion of ale, at which time the DS1685/ds1687 latches the address. valid write data must be present and held stable during the latter portion of the wr pulse. in a read cycle the DS1685/ds1687 outputs 8 bits of data during the latter portion of the rd pulse. the read cycle is ter- minated and the bus returns to a high impedance state as rd transitions high. the address/data bus also serves as a bidirectional data path for the external extended ram.
DS1685/ds1687 030598 3/32 ale (rtc address strobe input; active high) a pulse on the address strobe pin serves to demultiplex the bus. the falling edge of ale causes the rtc address to be latched within the DS1685/ds1687. rd (rtc read input; active low) rd identifies the time period when the DS1685/ds1687 drives the bus with rtc read data. the rd signal is an enable signal for the output buffers of the clock. wr (rtc write input; active low) the wr signal is an active low signal. the wr signal defines the time period during which data is written to the addressed reg- ister. cs (rtc chip select input; active low) the chip select signal must be asserted low during a bus cycle for the rtc portion of the DS1685/ds1687 to be accessed. cs must be kept in the active state during rd and wr timing. bus cycles which take place with ale asserted but without asserting cs will latch addresses. however, no data transfer will occur. irq (interrupt request output; open drain, active low) the irq pin is an active low output of the DS1685/ds1687 that can be tied to the interrupt input of a processor. the irq output remains low as long as the status bit causing the interrupt is present and the corre- sponding interruptenable bit is set. to clear the irq pin, the application software must clear all enabled flag bits contributing to irq 's active state. when no interrupt conditions are present, the irq level is in the high impedance state. multiple interrupting devices can be connected to an irq bus. the irq pin is an open drain output and requires an external pull-up resistor. pwr (power on output; open drain, active low) the pwr pin is intended for use as an on/off control for the system power. with v cc voltage removed from the DS1685/ds1687, pwr may be automatically activated from a kickstart input via the ks pin or from a wake up interrupt. once the system is powered on, the state of pwr can be controlled via bits in the dallas registers. ks (kickstart input; active low) when v cc is removed from the DS1685/ds1687, the system can be powered on in response to an active low transition on the ks pin, as might be generated from a key closure. v baux must be present and auxiliary battery enable bit (abe) must be set to 1 if the kickstart function is used, and the ks pin must be pulled up to the v baux supply. while v cc is applied, the ks pin can be used as an inter- rupt input. rclr (ram clear input; active low) if enabled by software, taking rclr low will result in the clearing of the 242 bytes of user ram. when enabled, rclr can be activated whether or not v cc is present. v baux auxiliary battery input required for kickstart and wake up features. this input also supports clock/ calendar and user ram if v bat is at lower voltage or is not present. a standard +3 volt lithium cell or other energy source can be used. battery voltage must be held between +2.5 and +3.7 volts for proper operation. if v baux is not going to be used it should be grounded and auxiliary battery enable bit bank 1, register 4bh, should=0.
DS1685/ds1687 030598 4/32 DS1685/ds1687 block diagram figure 1 osc v cc buffer enable periodic interrupt/square wave selector square wave out sqw irq double buffered registers a, b, c, d clock, calendar, and alarm bcd/binary increment clock/ calendar update bus interface ale rd wr ad0-ad7 x1 x2 v baux v cc cs pok + +3v v bat power control logic ks pwr cs select user ram 114 bytes ram clear logic rclr extended control/status registers 64bit serial number century counter date alarm  64  8  64 control v cc level detect power switch and write protect 32.768 khz extended ram addr/data registers extended user ram 128 bytes rtc address 2 rtc address 3
DS1685/ds1687 030598 5/32 DS1685 only x1, x2 connections for a standard 32.768 khz quartz crystal. for greatest accuracy, the DS1685 must be used with a crystal that has a specified load capacitance of either 6 pf or 12.5 pf. the crystal select (cs) bit in extended control register 4b is used to select opera- tion with a 6 pf or 12.5 pf crystal. the crystal is attached directly to the x1 and x2 pins. there is no need for external capacitors or resistors. note: x1 and x2 are very high impedance nodes. it is recommended that they and the crystal be guardringed with ground and that high frequency signals be kept away from the crystal area. for more information on crystal selection and crystal layout considerations, please consult application note 58, acrystal considerations with dallas real time clockso. the DS1685 can also be driven by an external 32.768 khz oscillator. in this configuration, the x1 pin is connected to the external oscillator signal and the x2 pin is floated. v bat battery input for any standard 3 volt lithium cell or other energy source. battery voltage must be held between 2.5 and 3.7 volts for proper operation. powerdown/powerup considerations the realtime clock function will continue to operate and all of the ram, time, calendar, and alarm memory loca- tions remain nonvolatile regardless of the level of the v cc input. when v cc is applied to the DS1685/ds1687 and reaches a level of greater than v pf (power fail trip point), the device becomes accessible after t rec , pro- vided that the oscillator is running and the oscillator countdown chain is not in reset (see register a). this time period allows the system to stabilize after power is applied. the DS1685/ds1687 is available in either a 3 volt or a 5 volt device. the 5 volt device is fully accessible and data can be written and read only when v cc is greater than 4.5 volts. when v cc is below 4.5 volts, read and writes are inhib- ited. however, the timekeeping function continues unaffected by the lower input voltage. as v cc falls below the greater of v bat and v baux , the ram and timekeeper are switched over to a lithium battery con- nected either to the v bat pin or v baux pin. the 3 volt device is fully accessible and data can be writ- ten or read only when v cc is greater than 2.7 volts. when v cc falls below v pf , access to the device is inhib- ited. if v pf is less than v bat and v baux , the power sup- ply is switched from v cc to the backup supply (the greater of v bat and v baux ) when v cc drops below v pf . if v pf is greater than v bat and v baux , the power supply is switched from v cc to the backup supply when v cc drops below the larger of v bat and v baux . when v cc falls below v pf , the chip is writeprotected. with the possible exception of the ks , pwr , and sqw pins, all inputs are ignored and all outputs are in a high impedance state. rtc address map the address map for the rtc registers of the DS1685/ds1687 is shown in figure 2. the address map consists of the 14 clock/calendar registers. ten registers contain the time, calendar, and alarm data, and four bytes are used for control and status. all regis- ters can be directly written or read except for the follow- ing: 1. registers c and d are readonly. 2. bit 7 of register a is readonly. 3. the high order bit of the seconds byte is readonly.
DS1685/ds1687 030598 6/32 DS1685 real time clock address map figure 2 0 00h 13 14 0dh 0eh 0 1 2 3 4 5 6 7 8 9 10 11 12 13 seconds seconds alarm minutes minutes alarm hours hours alarm day of the week day of the month month year register a register b register c register d binary or bcd inputs 07fh 127 clock/ calendar 14 bytes bank 0, 63 64 03fh 040h bank 1 registers, ram 50 bytes user ram time, calendar and alarm locations the time and calendar information is obtained by read- ing the appropriate register bytes shown in table 1. the time, calendar, and alarm are set or initialized by writing the appropriate register bytes. the contents of the time, calendar, and alarm registers can be either binary or binarycoded decimal (bcd) format. table 1 shows the binary and bcd formats of the twelve time, calendar, and alarm locations that reside in both bank 0 and in bank 1, plus the two extended registers that reside in bank 1 only (bank 0 and bank 1 switching will be explained later in this text). before writing the internal time, calendar, and alarm reg- isters, the set bit in register b should be written to a logic one to prevent updates from occurring while access is being attempted. also at this time, the data format (binary or bcd), should be set via the data mode bit (dm) of register b. all time, calendar, and alarm reg- isters must use the same data mode. the set bit in reg- ister b should be cleared after the data mode bit has been written to allow the realtime clock to update the time and calendar bytes. once initialized, the realtime clock makes all updates in the selected mode. the data mode cannot be changed without reinitializing the ten data bytes. the 24/12 bit cannot be changed without reinitializing the hour locations. when the 12hour format is selected, the high order bit of the hours byte represents pm when it is a logic one. the time, calendar, and alarm bytes are always accessible because they are double buffered. once per second the ten bytes are advanced by one second and checked for an alarm condition. if a read of the time and calendar data occurs during an update, a problem exists where seconds, minutes, hours, etc. may not correlate. the probability of reading incorrect time and calendar data is low. several methods of avoiding any possible incorrect time and calendar reads are covered later in this text. the four alarm bytes can be used in two ways. first, when the alarm time is written in the appropriate hours, minutes, and seconds alarm locations, the alarm inter- rupt is initiated at the specified time each day if the alarm enable bit is high . the second use condition is to insert a adon't careo state in one or more of the four alarm bytes. the adon't careo code is any hexadecimal value from c0 to ff. the two most significant bits of each byte set the adon't careo condition when at logic 1. an alarm will be generated each hour when the adon't careo bits are set in the hours byte. similarly, an alarm is gener- ated every minute with adon't careo codes in the hours and minute alarm bytes. the adon't careo codes in all three alarm bytes create an interrupt every second. the three alarm bytes may be used in conjunction with the date alarm as described in the wakeup/kickstart sec- tion. the century counter will be discussed later in this text.
DS1685/ds1687 030598 7/32 time, calendar and alarm data modes table 1 address location function decimal range range address location function decimal range binary data mode bcd data mode 00h seconds 059 003b 0059 01h seconds alarm 059 003b 0059 02h minutes 059 003b 0059 03h minutes alarm 059 003b 0059 04h hours 12hr. mode 112 01-0c am, 81-8c pm 01-12 am, 81-92 pm hours 24hour mode 023 0017 0023 05h hours alarm 12hr. mode 112 01-0c am, 81-8c pm 01-12am, 81-92 pm hours alarm 24hr. mode 023 0017 0023 06h day of week sunday=1 17 0107 0107 07h date of month 131 011f 0131 08h month 112 010c 0112 09h year 099 0063 0099 bank 1, 48h century 099 0063 0099 bank 1, 49h date alarm 131 011f 0131 control registers the four control registers; a, b, c, and d reside in both bank 0 and bank 1. these registers are accessible at all times, even during the update cycle. nonvolatile ram rtc the 242 general purpose nonvolatile ram bytes are not dedicated to any special function within the DS1685/ds1687. they can be used by the application program as nonvolatile memory and are fully available during the update cycle. the user ram is divided into two separate memory banks. when the bank 0 is selected, the 14 real time clock registers and 114 bytes of user ram are accessi- ble. when bank 1 is selected, an additional 128 bytes of user ram are accessible through the extended ram address and data registers. interrupt control the DS1685/ds1687 includes six separate, fully auto- matic sources of interrupt for a processor: 1. alarm interrupt 2. periodic interrupt 3. updateended interrupt 4. wake up interrupt 5. kickstart interrupt 6. ram clear interrupt the conditions which generate each of these indepen- dent interrupt conditions are described in greater detail elsewhere in this data sheet. this section describes the overall control of the interrupts. the application software can select which interrupts, if any, are to be used. there are a total of six bits including three bits in register b and three bits in extended reg- ister b which enable the interrupts. the extended regis- ter locations are described later. writing a logic 1 to an interrupt enable bit permits that interrupt to be initiated when the event occurs. a logic 0 in the interrupt enable bit prohibits the irq pin from being asserted from that interrupt condition. if an interrupt flag is already set
DS1685/ds1687 030598 8/32 when an interrupt is enabled, irq will immediately be set at an active level, even though the event initiating the interrupt condition may have occurred much earlier. as a result, there are cases where the software should clear these earlier generated interrupts before first enabling new interrupts. when an interrupt event occurs, the relating flag bit is set to a logic 1 in register c or in extended register a. these flag bits are set regardless of the setting of the corresponding enable bit located either in register b or in extended register b. the flag bits can be used in a polling mode without enabling the corresponding enable bits. however, care should be taken when using the flag bits of register c as they are automatically cleared to 0 immediately after they are read. double latching is implemented on these bits so that bits which are set remain stable throughout the read cycle. all bits which were set are cleared when read and new interrupts which are pending during the read cycle are held until after the cycle is completed. one, two, or three bits can be set when reading register c. each utilized flag bit should be examined when read to ensure that no inter- rupts are lost. the flag bits in extended register a are not automati- cally cleared following a read. instead, each flag bit can be cleared to 0 only by writing 0 to that bit. when using the flag bits with fully enabled interrupts, the irq line will be driven low when an interrupt flag bit is set and its corresponding enable bit is also set. irq will be held low as long as at least one of the six possible interrupt sources has it s flag and enable bits both set. the irqf bit in register c is a 1 whenever the irq pin is being driven low as a result of one of the six possible active sources. therefore, determination that the DS1685/ds1687 initiated an interrupt is acc omplished by reading register c and finding irqf=1. irqf will remain set until all enabled interrupt flag bits are cleared to 0. square wave output selection the sqw pin can be programmed to output a variety of frequencies divided down from the 32.768 khz crystal tied to x1 and x2. the square wave output is enabled and disabled via the sqwe bit in register b or the e32k bit in extended register 4bh. if the square wave is enabled (sqwe=1 or e32k=1), then the output fre- quency will be determined by the settings of the e32k bit in extended register 4bh and by the rs30 bits in reg- ister a. if e32k=1, then a 32.768 khz square wave will be output on the sqw pin regardless of the settings of rs30 and sqwe. if e32k = 0, then the square wave output frequency is determined by the rs30 bits. these bits control a 1of15 decoder which selects one of thirteen taps that divide the 32.768 khz frequency. the rs30 bits establish the sqw output frequency as shown in table 2. in addition, rs30 bits control the periodic interrupt selection as described below. if e32k=1, and the auxiliary battery enable bit (abe, bank 1; register 04bh) is enabled, and voltage is applied to v baux then the 32 khz square wave output signal will be output on the sqw pin in the absence of v cc . this facility is provided to clock external power management circuitry. if any of the above requirements are not met, no square wave output signal will be gener- ated on the sqw pin in the absence of v cc . a pattern of 01x in the dv2, dv1, and dv0, bits respec- tively, will turn the oscillator on and enable the count- down chain. note that this is different than the ds1287, which required a pattern of 010 in these bits. dv0 is now a adon't careo because it is used for selection between register banks 0 and 1. a pattern of 11x will turn the oscillator on, but the oscilla- tor's countdown chain will be held in reset, as it was in the ds1287. any other bit combination for dv2 and dv1 will keep the oscillator off. periodic interrupt selection the periodic interrupt will cause the irq pin to go to an active state from once every 500 ms to once every 122 m s. this function is separate from the alarm inter- rupt which can be output from once per second to once per day. the periodic interrupt rate is selected using the same rs30 bits in register a which select the square wave frequency (see table 2). changing the bits affects both the square wave frequency and the periodic inter- rupt output. however, each function has a separate enable bit in register b. the sqwe and e32k bits con- trol the square wave output. similarly, the periodic inter- rupt is enabled by the pie bit in register b. the periodic interrupt can be used with software counters to measure inputs, create output intervals, or await the next needed software function.
DS1685/ds1687 030598 9/32 update cycle the serialized rtc executes an update cycle once per second regardless of the set bit in register b. when the set bit in register b is set to one, the user copy of the double buffered time, calendar, alarm and elapsed time byte is frozen and will not update as the time incre- ments. however, the time countdown chain continues to update the internal copy of the buffer. this feature allows the time to maintain accuracy independent of reading or writing the time, calendar, and alarm buffers and also guarantees that time and calendar information is consistent. the update cycle also compares each alarm byte with the corresponding time byte and issues an alarm if a match or if a adon't careo code is present in all alarm locations. there are three methods that can handle access of the real-time clock that avoid any possibility of accessing inconsistent time and calendar data. the first method uses the updateended interrupt. if enabled, an inter- rupt occurs after every up date cycle that indicates that over 999 ms are available to read valid time and date information. if this interrupt is used, the irqf bit in reg- ister c should be cleared before leaving the interrupt routine. a second method uses the updateinprogress bit (uip) in register a to determine if the update cycle is in progress. the uip bit will pulse once per second. after the uip bit goes high, the update transfer occurs 244 m s later. if a low is read on the uip bit, the user has at least 244 m s before the time/calendar data will be changed. therefore, the user should avoid interrupt service rou- tines that would cause the time needed to read valid time/calendar data to exceed 244 m s. periodic interrupt rate and square wave output frequency table 2 ext. reg. b select bits register a t pi periodic sqw output e32k rs3 rs2 rs1 rs0 t pi periodic interrupt rate sqw output frequency 0 0 0 0 0 none none 0 0 0 0 1 3.90625 ms 256 hz 0 0 0 1 0 7.8125 ms 128 hz 0 0 0 1 1 122.070 m s 8.192 khz 0 0 1 0 0 244.141 m s 4.096 khz 0 0 1 0 1 488.281 m s 2.048 khz 0 0 1 1 0 976.5625 m s 1.024 khz 0 0 1 1 1 1.953125 ms 512 hz 0 1 0 0 0 3.90625 ms 256 hz 0 1 0 0 1 7.8125 ms 128 hz 0 1 0 1 0 15.625 ms 64 hz 0 1 0 1 1 31.25 ms 32 hz 0 1 1 0 0 62.5 ms 16 hz 0 1 1 0 1 125 ms 8 hz 0 1 1 1 0 250 ms 4 hz 0 1 1 1 1 500 ms 2 hz 1 x x x x * 32.768 khz *rs3rs0 determine periodic interrupt rates as listed for e32k=0.
DS1685/ds1687 030598 10/32 the third method uses a periodic interrupt to determine if an update cycle is in progress. the uip bit in register a is set high between the setting of the pf bit in register c (see figure 3). periodic interrupts that occur at a rate of greater than t buc allow valid time and date informa- tion to be reached at each occurrence of the periodic interrupt. the reads should be complete within (t pi / 2+t buc ) to ensure that data is not read during the update cycle. updateended and periodic interrupt relationship figure 3 ?? ?? ?? ?? ?? ?? t buc t pi/2 t pi/2 t pi uip bit in register a uf bit in register c pf bit in register c t pi = periodic interrupt time internal per table 1 t buc = delay time before update cycle = 244 m s register a msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 uip dv2 dv1 dv0 rs3 rs2 rs1 rs0 uip the update in progress (uip) bit is a status flag that can be monitored. when the uip bit is a one, the update transfer will soon occur. when uip is a zero, the update transfer will not occur for at least 244 m s. the time, calendar, and alarm information in ram is fully available for access when the uip bit is zero. the uip bit is read only. writing the set bit in register b to a one inhibits any update transfer and clears the uip status bit. dv2, dv1, dv0 these bits are defined as follows: dv2 = countdown chain 1 resets countdown chain only if dv1=1 0 countdown chain enabled dv1 = oscillator enable 0 oscillator off 1 oscillator on dv0 = bank select 0 original bank 1 extended registers a pattern of 01x is the only combination of bits that will turn the oscillator on and allow the rtc to keep time. a pattern of 11x will enable the oscillator but holds the countdown chain in reset. the next update will occur at 500 ms after a pattern of 01x is written to dv2, dv1, and dv0. rs3, rs2, rs1, rs0 these four rateselection bits select one of the 13 taps on the 15stage divider or dis- able the divider output. the tap selected can be used to generate an output square wave (sqw pin) and/or a periodic interrupt. the user can do one of the following enable the interrupt with the pie bit; enable the sqw output pin with the sqwe or e32k bits; enable both at the same time and the same rate; or enable neither. table 2 lists the periodic interrupt rates and the square wave frequencies that can be chosen with the rs bits.
DS1685/ds1687 030598 11/32 register b msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 set pie aie uie sqwe dm 24/12 dse set when the set bit is a zero, the update transfer functions normally by advancing the counts once per second. when the set bit is written to a one, any update transfer is inhibited and the program can initial- ize the time and calendar bytes without an update occurring in the midst of initializing. read cycles can be executed in a similar manner. set is a read/write bit that is not modified by internal functions of the DS1685/ds1687. pie the periodic interrupt enable bit is a read/write bit which allows the periodic interrupt flag (pf) bit in reg- ister c to drive the irq pin low. when the pie bit is set to one, periodic interrupts are generated by driving the irq pin low at a rate specified by the rs3rs0 bits of register a. a zero in the pie bit blocks the irq output from being driven by a periodic interrupt, but the peri- odic flag (pf) bit is still set at the periodic rate. pie is not modified by any internal DS1685/ds1687 functions. aie the alarm interrupt enable (aie) bit is a read/ write bit which, when set to a one, permits the alarm flag (af) bit in register c to assert irq . an alarm inter- rupt occurs for each second that the three time bytes equal the three alarm bytes including a adon't careo alarm code of binary 11xxxxxx. when the aie bit is set to zero, the af bit does not initiate the irq signal. the internal functions of the DS1685/ds1687 do not affect the aie bit. uie the update ended interrupt enable (uie) bit is a read/write that enables the update end flag (uf) bit in register c to assert irq . the set bit going high clears the uie bit. sqwe when the square wave enable (sqwe) bit is set to a one and e32k=0, a square wave signal at the frequency set by the rateselection bits rs3 through rs0 is driven out on the sqw pin. when the sqwe bit is set to zero and e32k=0, the sqw pin is held low. sqwe is a read/write bit. dm the data mode (dm) bit indicates whether time and calendar information is in binary or bcd format. the dm bit is set by the program to the appropriate for- mat and can be read as required. this bit is not modified by internal functions. a one in dm signifies binary data while a zero in dm specifies binary coded decimal (bcd) data. 24/12 the 24/12 control bit establishes the format of the hours byte. a one indicates the 24hour mode and a zero indicates the 12hour mode. this bit is read/write. dse the daylight savings enable (dse) bit is a read/ write bit which enables two special updates when dse is set to one. on the first sunday in april the time incre- ments from 1:59:59 am to 3:00:00 am. on the last sunday in october when the time first reaches 1:59:59 am it changes to 1:00:00 am. these special updates do not occur when the dse bit is a zero. this bit is not affected by internal functions. register c msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 irqf pf af uf 0 0 0 0 irqf the interrupt request flag (irqf) bit is set to a one when one or more of the following are true: pf = pie = 1 wf = wie = 1 af = aie = 1 kf = kse= 1 uf = uie = 1 rf = rie = 1 i.e., irqf = ( pf ? pie ) + ( af ? aie ) + ( uf ? uie ) + ( wf ? wie ) + ( kf ? kse ) + ( rf ? rie ) any time the irqf bit is a one, the irq pin is driven low. flag bits pf, af, and uf are cleared after register c is read by the program. pf the periodic interrupt flag (pf) is a readonly bit which is set to a one when an edge is detected on the selected tap of the divider chain. the rs3 through rs0 bits establish the periodic rate. pf is set to a one inde- pendent of the state of the pie bit. when both pf and pie are ones, the irq signal is active and will set the irqf bit. the pf bit is cleared by a software read of register c. af a one in the alarm interrupt flag (af) bit indicates that the current time has matched the alarm time. if the aie bit is also a one, the irq pin will go low and a one will appear in the irqf bit. a read of register c will clear af.
DS1685/ds1687 030598 12/32 uf the update ended interrupt flag (uf) bit is set after each update cycle. when the uie bit is set to one, the one in uf causes the irqf bit to be a one which will assert the irq pin. uf is cleared by reading register c. bit 3 through bit 0 these are unused bits of the status register c. these bits always read zero and can- not be written. register d msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 vrt 0 0 0 0 0 0 0 vrt the valid ram and time (vrt) bit indicates the condition of the battery connected to the v bat pin or the battery connected to v baux , whichever is at a higher voltage. this bit is not writable and should always be a one when read. if a zero is ever present, an exhausted lithium energy source is indicated and both the contents of the rtc data and ram data are questionable. bit 6 through bit 0 the remaining bits of register d are not usable. they cannot be written and, when read, they will always read zero. extended functions the extended functions provided by the DS1685/ds1687 that are new to the ramified rtc family are accessed via a software controlled bank switching scheme, as illustrated in figure 4. in bank 0, the clock/calendar registers and 50 bytes of user ram are in the same locations as for the ds1287. as a result, existing routines implemented within bios, dos, or application software packages can gain access to the DS1685/ds1687 clock registers with no changes. also in bank 0, an extra 64 bytes of ram are provided at addresses just above the original locations for a total of 114 directly addressable bytes of user ram. when bank 1 is selected, the clock/calendar registers and the original 50 bytes of user ram still appear as bank 0. however, the dallas registers which provide control and status for the extended functions will be accessed in place of the additional 64 bytes of user ram. the major extended functions controlled by the dallas registers are listed below: 1. 64bit silicon serial number 2. century counter 3. date alarm 4. auxiliary battery control/status 5. wake up 6. kickstart 7. ram clear control/status 8. 128 bytes extended ram access the bank selection is controlled by the state of the dv0 bit in register a. to access bank 0 the dv0 bit should be written to a 0. to access bank 1, dv0 should be written to a 1. register locations designated as reserved in the bank 1 map are reserved for future use by dallas semi- conductor. bits in these locations cannot be written and will return a 0 if read.
DS1685/ds1687 030598 13/32 DS1685/ds1687 extended register bank definition figure 4 reserved reserved reserved reserved reserved reserved reserved reserved reserved reserved 00 od 0e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 7f dv0 = 1 00 od 0e 3f 7f dv0 = 0 bank 0 bank 1 timekeeping and control 50 bytesuser ram 64 bytesuser ram timekeeping and control 50 bytesuser ram model number byte 1st byte serial number 2nd byte serial number 3rd byte serial number 4th byte serial number 5th byte serial number 6th byte serial number crc byte century byte date alarm extended control reg 4a extended control reg 4b reserved reserved rtc address 2 rtc address 3 extended ram address reserved reserved extended ram data port msb lsb msb lsb 55 56 57 58 59 5a 5b 5c 5d 60 67 reserved reserved 5e 5f reserved extended ram 128 x 8
DS1685/ds1687 030598 14/32 silicon serial number a unique 64bit lasered serial number is located in bank 1, registers 40h 47h. this serial number is divided into three parts. the first byte in register 40h contains a model number to identify the device type and revision of the DS1685/ds1687. registers 41h 46h contain a unique binary number. register 47h contains a crc byte used to validate the data in registers 40h 46h. all eight bytes of the serial number are readonly registers. the DS1685/ds1687 is manufactured such that no two devices will contain an identical number in locations 41h 47h. century counter a register has been added in bank 1, location 48h, to keep track of centuries. the value is read in either binary or bcd according to the setting of the dm bit. 128 x 8 extended ram the DS1685/ds1687 provides 128 x 8 of onchip sram which is controlled as nonvolatile storage sus- tained from a lithium battery. on powerup, the ram is taken out of write protect status by the internal power ok signal (pok) generated from the write protect cir- cuitry. the onchip 128 x 8 nonvolatile sram is accessed via the eight multiplexed address/data lines ad7 to ad0. access to the sram is controlled by two onchip latch registers. one register is used to hold the sram address, and the other register is used to hold read/write data. the sram address space is from 00h to 7fh. access to the extended 128 x 8 ram is controlled via two of the dallas registers shown in figure 4. the dal- las registers in bank 1 must first be selected by setting the dv0 bit in register a to a logic 1. the 7bit address of the ram location to be accessed must be loaded into the extended ram address register located at 50h. data in the addressed location may be read by perform- ing a read operation from location 53h, or written to by performing a write operation to location 53h. data in any addressed location may be read or written repeatedly without changing the address in location 50h. auxiliary battery the v baux input is provided to supply power from an auxiliary battery for the DS1685/ds1687 kickstart, wake up, and sqw output features in the absence of v cc . this power source must be available in order to use these auxiliary features when no v cc is applied to the device. the auxiliary battery enable (abe; bank 1, register 04bh) bit in extended control register b is used to turn on and off the auxiliary battery for the above functions in the absence of v cc . when set to a 1, v baux battery power is enabled, and when cleared to 0, v baux battery power is disabled to these functions. in the DS1685/ds1687, this auxiliary battery may be used as the primary backup power source for maintain- ing the clock/calendar, user ram, and extended exter- nal ram functions. this occurs if the v bat pin is at a lower voltage than v baux . if the DS1685 is to be backedup using a single battery with the auxiliary fea- tures enabled, then v baux should be used and v bat should be grounded. if v baux is not to be used, it should be grounded and abe should be cleared to 0. wake up/kickstart the DS1685/ds1687 incorporates a wake up feature which can power the system on at a predetermined date through activation of the pwr output pin. in addi- tion, the kickstart feature can allow the system to be powered up in response to a low going transition on the ks pin, without operating voltage applied to the v cc pin. as a result, system power may be applied upon such events as a key closure, or modem ring detect signal. in order to use either the wake up or the kickstart features, the DS1685/ds1687 must have an auxiliary battery connected to the v baux pin and the oscillator must be running and the countdown chain must not be in reset (register a dv2, dv1, dv0 = 01x). if dv2, dv1, and dv0 are not in this required state, the pwr pin will not be driven low in response to a kickstart or wakeup condi- tion, while in batterybacked mode. the wake up feature is controlled through the wake up interrupt enable bit in extended control register b (wie, bank 1, 04bh). setting wie to 1 enables the wake up feature, clearing wie to 0 disables it. similarly, the kick- start feature is controlled through the kickstart interrupt enable bit in extended control register b (kse, bank 1, 04bh).
DS1685/ds1687 030598 15/32 a wake up sequence will occur as follows: when wake up is enabled via wie = 1 while the system is powered down (no v cc voltage), the clock/calendar will monitor the current date for a match condition with the date alarm register (bank 1, register 049h). in conjunction with the date alarm register, the hours, minutes, and seconds alarm bytes in the clock/calendar register map (bank 0, registers 05h, 03h, and 01h) are also moni- tored. as a result, a wake up will occur at the date and time specified by the date, hours, minutes, and seconds alarm register values. this additional alarm will occur regardless of the programming of the aie bit (bank 0, register b, 0bh). when the match condition occurs, the pwr pin will automatically be driven low. this output can be used to turn on the main system power supply which provides v cc voltage to the DS1685/ds1687 as well as the other major components in the system. also at this time, the wake up flag (wf, bank 1, register 04ah) will be set, indicating that a wake up condition has occurred. a kickstart sequence will occur when kickstarting is enabled via kse = 1. while the system is powered down, the ks input pin will be monitored for a low going transition of minimum pulse width t kspw . when such a transition is detected, the pwr line will be pulled low, as it is for a wake up condition. also at this time, the kick- start flag (kf, bank 1, register 04ah) will be set, indicat- ing that a kickstart condition has occurred. the timing associated with both the wake up and kick- starting sequences is illustrated in the wake up / kick- start timing diagram in the electrical specifications section of this data sheet. the timing associated with these functions is divided into 5 intervals, labeled 15 on the diagram. the occurrence of either a kickstart or wake up condi- tion will cause the pwr pin to be driven low, as described above. during interval 1, if the supply voltage on the DS1685/ds1687 v cc pin rises above the 3 volt power fail level before the power on timeout period (t poto ) expires, then pwr will remain at the active low level. if v cc does not rise above the 3 volt power fail voltage in this time, then the pwr output pin will be turned off and will return to its high impedance level. in this event, the irq pin will also remain tristated. the interrupt flag bit (either wf or kf) associated with the attempted power on sequence will remain set until cleared by software during a subsequent system power on. if v cc is applied within the timeout period, then the sys- tem power on sequence will continue as shown in inter- vals 25 in the timing diagram. during interval 2, pwr will remain active and irq will be driven to its active low level, indicating that either wf or kf was set in initiating the power on. in the diagram ks is assumed to be pulled up to the v baux supply. also at this time, the pab bit will be automatically cleared to 0 in response to a success- ful power on. the pwr line will remain active as long as the pab remains cleared to 0. at the beginning of interval 3, the system processor has begun code execution and clears the interrupt condition of wf and/or kf by writing zeroes to both of these con- trol bits. as long as no other interrupt within the DS1685/ds1687 is pending, the irq line will be taken inactive once these bits are reset. execution of the application software may proceed. during this time, both the wake up and kickstart functions may be used to generate status and interrupts. wf will be set in response to a date, hours, minutes, and seconds match condition. kf will be set in response to a low going tran- sition on ks . if the associated interrupt enable bit is set (wie and/or kse) then the irq line will driven active low in response to enabled event. in addition, the other pos- sible interrupt sources within the DS1685/ds1687 may cause irq to be driven low. while system power is applied, the on chip logic will always attempt to drive the pwr pin active in response to the enabled kickstart or wake up condition. this is true even if pwr was pre- viously inactive as the result of power being applied by some means other than wake up or kickstart. the system may be powered down under software con- trol by setting the pab bit to a logic 1. this causes the opendrain pwr pin to be placed in a high impedance state, as shown at the beginning of interval 4 in the tim- ing diagram. as v cc voltage decays, the irq output pin will be placed in a high impedance state when v cc goes below v pf . if the system is to be again powered on in response to a wake up or kickstart, then the both the wf and kf flags should be cleared and wie and/or kse should be enabled prior to setting the pab bit. during interval 5, the system is fully powered down. battery backup of the clock calendar and nonvolatile ram is in effect and irq is tristated, and monitoring of wake up and kickstart takes place. if prs=1, pwr stays active, otherwise if prs=0 pwr is tristated.
DS1685/ds1687 030598 16/32 ram clear the DS1685/ds1687 provides a ram clear function for the 242 bytes of user ram. when enabled, this function can be performed regardless of the condition of the v cc pin. the ram clear function is enabled or disabled via the ram clear enable bit (rce; bank 1, register 04bh). when this bit is set to a logic 1, the 242 bytes of user ram will be cleared (all bits set to 1) when an active low transition is sensed on the rclr pin. this action will have no effect on either the clock/calendar settings or upon the contents of the extended ram. the ram clear flag (rf, bank 1, register 04ah) will be set when the ram clear operation has been completed. if v cc is present at the time of the ram clear and rie=1, the irq line will also be driven low upon completion. the inter- rupt condition can be cleared by writing a zero to the rf bit. the irq line will then return to its inactive high level provided there are no other pending interrupts. once the rclr pin is activated, all read/write accesses are locked out for a minimum recover time, specified as t rec in the electrical characteristics section. when rce is cleared to zero, the ram clear function is disabled. the state of the rclr pin will have no effect on the contents of the user ram, and transitions on the rclr pin have no effect on rf. extended control registers two extended control registers are provided to supply controls and status information for the extended fea- tures offered by the DS1685/ds1687. these are desig- nated as extended control registers a and b and are located in register bank 1, locations 04ah and 04bh, respectively. the functions of the bits within these regis- ters are described as follows. extended control register 4a msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 vrt2 incr * * pab rf wf kf vrt2 this status bit gives the condition of the auxil- iary battery. it is set to a logic 1 condition when the exter- nal lithium battery is connected to the v baux . if this bit is read as a logic 0, the external battery should be replaced. incr increment in progress status bit. this bit is set to a 1 when an increment to the time/date registers is in progress and the alarm checks are being made. incr will be set to a 1 at 122 m s before the update cycle starts and will be cleared to 0 at the end of each update cycle. pab power active bar control bit. when this bit is 0, the pwr pin is in the active low state. when this bit is 1, the pwr pin is in the high impedance state. this bit can be written to a logic 1 or 0 by the user. if either wf and wie = 1 or kf and kse = 1, the pab bit will be cleared to 0. rf ram clear flag. this bit will be set to a logic 1 when a high to low transition occurs on the rclr input if rce=1. the rf bit is cleared by writing it to a logic 0. this bit can also be written to a logic 1 to force an inter- rupt condition. wf wake up alarm flag this bit is set to 1 when a wake up alarm condition occurs or when the user writes it to a 1. wf is cleared by writing it to a 0. kf kickstart flag this bit is set to a 1 when a kick- start condition occurs or when the user writes it to a 1. this bit is cleared by writing it to a logic 0. extended control register 4b msb lsb bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 abe e32k cs rce prs rie wie kse abe auxiliary battery enable. this bit when written to a logic 1 will enable the v baux pin for extended func- tions. e32k enable 32.768 khz output. this bit when writ- ten to a logic 1 will enable the 32.768 khz oscillator fre- quency to be output on the sqw pin.
DS1685/ds1687 030598 17/32 cs crystal select bit. when cs is set to a 0, the oscil- lator is configured for operation with a crystal that has a 6 pf specified load capacitance. when cs=1, the oscil- lator is configured for a 12.5 pf crystal. rce ram clear enable bit. when set to a 1, this bit enables a low level on rclr to clear all 242 bytes of user ram. when rce = 0, rclr and the ram clear function are disabled. prs pab reset select bit. when set to a 0 the pwr pin will be set hiz when the DS1685 goes into power fail. when set to a 1, the pwr pin will remain active upon entering power fail. rie ram clear interrupt enable. when rie is set to a 1, the irq pin will be driven low when a ram clear func- tion is completed. wie wake up alarm interrupt enable. when v cc voltage is absent and wie is set to a 1, the pwr pin will be driven active low when a wake up condition occurs, causing the wf bit to be set to 1. when v cc is then applied, the irq pin will also be driven low. if wie is set while system power is applied, both irq and pwr will be driven low in response to wf being set to 1. when wie is cleared to a 0, the wf bit will have no effect on the pwr or irq pins. kse kickstart interrupt enable. when v cc voltage is absent and kse is set to a 1, the pwr pin will be driven active low when a kickstart condition occurs (ks pulsed low), causing the kf bit to be set to 1. when v cc is then applied, the irq pin will also be driven low. if kse is set to 1 while system power is applied, both irq and pwr will be driven low in response to kf being set to 1. when kse is cleared to a 0, the kf bit will have no effect on the pwr or irq pins. * reserved bits. these bits are reserved for future use by dallas semiconductor. they can be read and writ- ten, but have no effect on operation. system maintenance interrupt (smi) recovery stack an smi recovery register stack is located in the extended register bank, locations 4eh and 4fh. this register stack, shown below, can be used by the bios to recover from an smi occurring during an rtc read or write. rtc address rtc address 1 rtc address 2 rtc address 3 4eh 4fh smi recovery stack dv0 ad6 ad0 ad5 ad4 ad3 ad2 ad1 register bit definition 765 43210 the rtc address is latched on the falling edge of the ale signal. each time an rtc address is latched, the register address stack is pushed. the stack is only four registers deep, holding the three previous rtc addresses in addition to the current rtc address being accessed. the following waveform illustrates how the bios could recover the rtc address when an smi occurs. 1 2 3 4 ale 1. the rtc address is latched. 2. an smi is generated before an rtc read or write occurs. 3. rtc address 0ah is latched and the address from a1o is pushed to the artc address 1o stack location. this step is necessary to change the bank select bit, dv0=1. 4. rtc address 4eh is latched and the address from ais pushed to location 4eho, artc address 2o while 0ah is pushed to the artc address 1o location. the data in this register, 4eh, is the rtc address lost due to the smi.
DS1685/ds1687 030598 18/32 absolute maximum ratings* voltage on any pin relative to ground 0.3v to +7.0v operating temperature 0 c to 70 c storage temperature DS1685 55 c to +125 c storage temperature ds1687 40 c to +70 c soldering temperature 260 c for 10 seconds (see note 12) * this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. exposure to absolute maximum rating conditions for extended periods of time may affect reliability. recommended dc operating conditions (0 c to 70 c) parameter symbol min typ max units notes power supply voltage 5 volt operation v cc 4.5 5.0 5.5 v 1 power supply voltage 3 volt operation v cc 2.7 3.0 3.3 v 1 input logic 1 v ih 2.2 v cc +0.3 v 1 input logic 0 v il 0.3 0.6 v 1 battery voltage v bat 2.5 3.7 v 1 auxiliary battery voltage; v cc =5.0v v baux 2.5 5.2 v 1 auxiliary battery voltage; v cc =3.0v v baux 2.5 3.7 v 1 dc electrical characteristics (0 c to 70 c; v cc =5.0v 10%) parameter symbol min typ max units notes average v cc power supply current i cc1 7 15 ma 2, 3 cmos standby current (cs =v cc 0.2v) i cc2 1 3 ma 2, 3 input leakage current (any input) i il 1 +1 m a output leakage current i ol 1 +1 m a 6 output logic 1 voltage (i out = 1.0 ma) v oh 2.4 v output logic 0 voltage (i out = +2.1 ma) v ol 0.4 v power fail trip point v pf 4.25 4.37 4.5 v 4 battery switch voltage v sw v bat , v baux v 9
DS1685/ds1687 030598 19/32 dc electrical characteristics (cont'd) (0 c to 70 c; v cc =5.0v 10%) parameter symbol min typ max units notes battery leakage osc on i bat1 500 na battery leakage osc off i bat2 200 na i/o leakage i lo 1 +1 m a 5 pwr output @ 0.4v i olpwr 10.0 ma 1 irq output @ 0.4v i olirq 2.1 ma 1 dc electrical characteristics (0 c to 70 c; v cc =3.0v 10%) parameter symbol min typ max units notes average v cc power supply current i cc1 5 10 ma 2, 3 cmos standby current (cs =v cc 0.2) i cc2 0.5 2 ma 2, 3 input leakage current (any input) i il 1 +1 m a output leakage current i ol 1 +1 m a 6 output logic 1 voltage @ 0.4 ma v oh 2.4 v output logic 0 voltage @ +0.8 ma v ol 0.4 v power fail trip point v pf 2.5 2.6 2.7 v 4 battery leakage osc on i bat1 500 na battery leakage osc off i bat2 200 na i/o leakage i lo 1 +1 m a 5 pwr output @ 0.4v i olpwr 4 ma 1 irq output @ 0.4v i olirq 0.8 ma 1
DS1685/ds1687 030598 20/32 rtc ac timing characteristics (0 c to 70 c; v cc = 3.0v 10%) parameter symbol min typ max units notes cycle time t cyc 260 dc ns pulse width, rd /wr low pw rwl 100 ns pulse width, rd /wr high pw rwh 100 ns input rise and fall time t r , t f 30 ns chip select setup time before wr , or rd t cs 20 ns chip select hold time t ch 0 ns read data hold time t dhr 10 50 ns write data hold time t dhw 0 ns muxed address valid time to ale fall t asl 30 ns muxed address hold time from ale fall t ahl 15 ns rd or wr high setup to ale rise t asd 30 ns pulse width ale high pw ash 80 ns ale low setup to rd or wr fall t ased 30 ns output data delay time from rd t ddr 20 80 ns 7 data setup time t dsw 60 ns irq release from rd t ird 2 m s ac test conditions output load: 50 pf input pulse levels: 03.0v timing measurement reference levels input: 1.5v output: 1.5v input pulse rise and fall times: 5 ns
DS1685/ds1687 030598 21/32 DS1685/ds1687 bus timing for read cycle to rtc t cyc pw rwl pw ash t asd t ased t asd pw rwh t cs t ch t dhr t ahl t asl ale wr rd cs ad0ad7 t ddr irq t ird
t cyc pw rwl pw ash t asd t ased t asd pw rwh t cs t dsw t ch t dhw t ahl t asl ale wr rd cs ad0ad7 DS1685/ds1687 030598 22/32 rtc ac timing characteristics (0 c to 70 c; v cc = 5.0v 10%) parameter symbol min typ max units notes cycle time t cyc 195 dc ns pulse width, rd /wr low pw rwl 75 ns pulse width, rd /wr high pw rwh 75 ns input rise and fall time t r , t f 30 ns chip select setup time before wr , or rd t cs 20 ns chip select hold time t ch 0 ns read data hold time t dhr 10 50 ns write data hold time t dhw 0 ns muxed address valid time to ale fall t asl 30 ns muxed address hold time from ale fall t ahl 15 ns rd or wr high setup to ale rise t asd 25 ns pulse width ale high pw ash 40 ns ale low setup to rd or wr fall t ased 30 ns output data delay time from rd t ddr 20 60 ns 7 data setup time t dsw 60 ns irq release from rd t ird 2 m s DS1685/ds1687 bus timing for write cycle to rtc and rtc registers
DS1685/ds1687 030598 23/32 powerup condition 3 volt device power fail cs v cc v ih t rec 2.7v 2.6v 2.5v t r powerdown condition 3 volt device v ih t pf t f 2.7v 2.6v 2.5v power fail cs v cc
DS1685/ds1687 030598 24/32 powerup condition 5.0 volt device power fail cs v cc v ih t rec 4.5v 4.25v 4.0v t r powerdown condition 5.0 volt device v ih t pf t f t fb v bat 4.5v 4.25v 4.0v power fail cs v cc
DS1685/ds1687 030598 25/32 powerup powerdown timing 5 volt device (t a = 25 c) parameter symbol min typ max units notes cs high to power fail t pf 0 ns recovery at powerup t rec 150 ms v cc slew rate powerdown t f 4.0 < v cc < 4.5v 300 m s v cc slew rate powerdown t fb 3.0 < v cc < 4.0v 10 m s v cc slew rate powerup t r 4.5v> v cc > 4.0v 0 m s expected data retention t dr 10 years 10, 11 powerup powerdown timing 3 volt device (t a = 25 c) parameter symbol min typ max units notes cs high to power fail t pf 0 ns recovery at powerup t rec 150 ms v cc slew rate powerdown t f 2.6 < v cc < 2.7v 300 m s v cc slew rate powerup t r 2.7v> v cc > 2.6v 0 m s expected data retention t dr 10 years 10, 11 warning: under no circumstances are negative undershoots, of any amplitude, allowed when device is in battery backup mode. capacitance (t a = 25 c) parameter symbol min typ max units notes input capacitance c in 12 pf output capacitance c out 12 pf wake up/kickstart timing (t a = 25 c) parameter symbol min typ max units notes kickstart input pulse width t kspw 2 m s wake up/kickstart power on timeout t poto 2 seconds 8
DS1685/ds1687 030598 26/32 wake up/kickstart timing 1 2 3 4 5 irq pwr ks wf/kf (internal) 0v v bat v pf v pf >v bat t potp t kspw v ih hiz v il v ih hiz v il v ih v il 0v v pf v bat v pf DS1685/ds1687 030598 27/32 notes: 1. all voltages are referenced to ground. 2. typical values are at 25 c and nominal supplies. 3. outputs are open. 4. write protection trip point occurs during power fail prior to switchover from v cc to v bat . 5. applies to the ad0ad7 pins, and the sqw pin when each is in a high impedance state. 6. the irq and pwr pins are open drain outputs. 7. measured with a load of 50 pf + 1 ttl gate. 8. wakeup kickstart timeout generated only when the oscillator is enabled and the countdown chain is not reset. 9. v sw is determined by the larger of v bat and v baux . 10. the ds1687 will keep time to an accuracy of 1 minute per month during data retention time for the period of t dr . 11. t dr is the amount of time that the internal battery can power the internal oscillator and internal registers of the ds1687. 12. realtime clock modules can be successfully processed through conventional wavesoldering techniques as long as temperature exposure to the lithium energy source contained within does not exceed +85 c. post solder cleaning with water washing techniques is acceptable, provided that ultrasonic vibration is not used.
DS1685/ds1687 030598 28/32 DS1685 24pin dip a b c e f g h j k d 1 pkg 24pin dim min max a in. mm 1.245 31.62 1.270 32.25 b in. mm 0.530 13.46 0.550 13.97 c in. mm 0.140 3.56 0.160 4.06 d in. mm 0.600 15.24 0.625 15.88 e in. mm 0.015 0.380 0.050 1.27 f in. mm 0.120 3.05 0.145 3.68 g in. mm 0.090 2.29 0.110 2.79 h in mm 0.625 15.88 0.675 17.15 j in mm 0.008 0.20 0.012 0.30 k in. mm 0.015 0.38 0.022 0.56
DS1685/ds1687 030598 29/32 DS1685 24pin soic the chamfer on the body is optional. if it is not present, a terminal 1 identifier must be positioned so that 1/2 or more of its area is contained in the hatched zone. pkg 24pin dim min max a in. mm 0.094 2.38 0.105 2.68 a1 in. mm 0.004 0.102 0.012 0.30 a2 in. mm 0.089 2.26 0.095 2.41 b in. mm 0.013 0.33 0.020 0.51 c in mm 0.009 0.229 0.013 0.33 d in. mm 0.598 15.19 0.612 15.54 e in. mm 0.050 bsc 1.27 bsc e1 in. mm 0.290 7.37 0.300 7.62 h in mm 0.398 10.11 0.416 10.57 l in mm 0.016 0.40 0.040 1.02 q 0 8
DS1685/ds1687 030598 30/32 DS1685q 28pin plcc g 45deg. cl d e f h a b b1 c pkg 28pin dim min max a in. mm 0.300 bsc 7.62 b in. mm 0.445 11.30 0.460 11.68 b1 in mm 0.013 0.33 0.021 0.53 c in mm 0.027 0.68 0.33 0.84 d in. mm 0.480 12.19 0.500 12.70 d2 in. mm 0.390 9.91 0.430 10.92 e in. mm 0.090 2.29 0.120 3.05 e2 in. mm 0.390 9.91 0.430 10.92 f in. mm 0.020 0.51 g in mm 0.480 12.19 0.500 12.70 h in mm 0.165 4.19 0.180 4.57
DS1685/ds1687 030598 31/32 DS1685e 24pin tssop dim min max a 1.10 a1 0.05 a2 0.75 1.05 c 0.09 0.18 phi 0 8 l 0.50 0.70 e1 0.65 bsc b 0.18 0.30 d 7.55 8.00 e 4.40 nom g 0.25 ref h 6.25 6.55
DS1685/ds1687 030598 32/32 ds1687 real time clock plus ram a 24 112 13 c e f k d 11 equal spaces at .100 .010 tna g b h j note: pins 2, 3, 16, and 20 are missing by design. dim min max 24pin pkg a in. mm b in. mm c in. mm d in. mm e in. mm f in. mm g in. mm h in. mm j in. mm k in. mm 1.320 33.53 1.335 33.91 0.720 18.29 0.740 18.80 0.345 8.76 0.370 9.40 0.100 2.54 0.130 3.30 0.015 0.38 0.030 0.76 0.110 2.79 0.140 3.56 0.090 2.29 0.110 2.79 0.590 14.99 0.630 16.00 0.008 0.20 0.012 0.30 0.015 0.38 0.021 0.53


▲Up To Search▲   

 
Price & Availability of DS1685

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X